From c2f25c0c2f54127b3e632b428aed17d69cc1d153 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 29 Feb 2020 09:51:26 -0500 Subject: [PATCH] wayland: Stop calling frontend surface api This is an unnecessary vfunc roundtrip, and the frontend api is going away shortly. --- gdk/wayland/gdksurface-wayland.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index e50c39991a..526b07f567 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -2634,6 +2634,11 @@ is_fallback_relayout_possible (GdkSurface *surface) return TRUE; } +static gboolean gdk_wayland_surface_present_popup (GdkSurface *surface, + int width, + int height, + GdkPopupLayout *layout); + static void queue_relayout_fallback (GdkSurface *surface, GdkPopupLayout *layout) @@ -2644,10 +2649,10 @@ queue_relayout_fallback (GdkSurface *surface, return; gdk_wayland_surface_hide_surface (surface); - gdk_surface_present_popup (surface, - impl->popup.unconstrained_width, - impl->popup.unconstrained_height, - layout); + gdk_wayland_surface_present_popup (surface, + impl->popup.unconstrained_width, + impl->popup.unconstrained_height, + layout); } static void -- 2.30.2